<?php
	/* Libchart - PHP chart library
	 * Copyright (C) 2005-2007 Jean-Marc Tr�meaux (jm.tremeaux at gmail.com)
	 * 
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU General Public License as published by
	 * the Free Software Foundation, either version 3 of the License, or
	 * (at your option) any later version.
	 * 
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU General Public License for more details.
	 *
	 * You should have received a copy of the GNU General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 * 
	 */
	
	/**
	 * Color palette shared by all chart types.
	 *
	 * @author Jean-Marc Tr�meaux (jm.tremeaux at gmail.com)
	 * Created on 25 july 2007
	 */
	class Libchart_View_Color_Palette {
		public $red;
		public $axisColor;
		public $aquaColor;
		
		public $barColorSet;
		public $lineColorSet;
		public $pieColorSet;
	
		/**
		 * Palette constructor.
		 */
		public function __construct() {
			$this->red = new Libchart_View_Color_Color(255, 0, 0);
		
			// Colors for the horizontal and vertical axis
			$this->axisColor = array(
					new Libchart_View_Color_Color(201, 201, 201),
					new Libchart_View_Color_Color(158, 158, 158)
			);

			// Colors for the background
			$this->aquaColor = array(
					new Libchart_View_Color_Color(242, 242, 242),
					new Libchart_View_Color_Color(231, 231, 231),
					new Libchart_View_Color_Color(239, 239, 239),
					new Libchart_View_Color_Color(253, 253, 253)
			);
			
			// Colors for the bars
			$this->barColorSet = new Libchart_View_Color_ColorSet(array(
					new Libchart_View_Color_Color(42, 71, 181),
					new Libchart_View_Color_Color(243, 198, 118),
					new Libchart_View_Color_Color(128, 63, 35),
					new Libchart_View_Color_Color(128, 63, 35),
					new Libchart_View_Color_Color(195, 45, 28),
					new Libchart_View_Color_Color(224, 198, 165),
					new Libchart_View_Color_Color(239, 238, 218),
					new Libchart_View_Color_Color(40, 72, 59),
					new Libchart_View_Color_Color(71, 112, 132),
					new Libchart_View_Color_Color(167, 192, 199),
					new Libchart_View_Color_Color(218, 233, 202)
			), 0.75);

			// Colors for the lines
			$this->lineColorSet = new Libchart_View_Color_ColorSet(array(
					new Libchart_View_Color_Color(172, 172, 210),
					new Libchart_View_Color_Color(2, 78, 0),
					new Libchart_View_Color_Color(148, 170, 36),
					new Libchart_View_Color_Color(233, 191, 49),
					new Libchart_View_Color_Color(240, 127, 41),
					new Libchart_View_Color_Color(243, 63, 34),
					new Libchart_View_Color_Color(190, 71, 47),
					new Libchart_View_Color_Color(135, 81, 60),
					new Libchart_View_Color_Color(128, 78, 162),
					new Libchart_View_Color_Color(121, 75, 255),
					new Libchart_View_Color_Color(142, 165, 250),
					new Libchart_View_Color_Color(162, 254, 239),
					new Libchart_View_Color_Color(137, 240, 166),
					new Libchart_View_Color_Color(104, 221, 71),
					new Libchart_View_Color_Color(98, 174, 35),
					new Libchart_View_Color_Color(93, 129, 1)
			), 0.75);

			// Colors for the pie
			$this->pieColorSet = new Libchart_View_Color_ColorSet(array(
				new Libchart_View_Color_Color(2, 78, 0),
				new Libchart_View_Color_Color(148, 170, 36),
				new Libchart_View_Color_Color(233, 191, 49),
				new Libchart_View_Color_Color(240, 127, 41),
				new Libchart_View_Color_Color(243, 63, 34),
				new Libchart_View_Color_Color(190, 71, 47),
				new Libchart_View_Color_Color(135, 81, 60),
				new Libchart_View_Color_Color(128, 78, 162),
				new Libchart_View_Color_Color(121, 75, 255),
				new Libchart_View_Color_Color(142, 165, 250),
				new Libchart_View_Color_Color(162, 254, 239),
				new Libchart_View_Color_Color(137, 240, 166),
				new Libchart_View_Color_Color(104, 221, 71),
				new Libchart_View_Color_Color(98, 174, 35),
				new Libchart_View_Color_Color(93, 129, 1)
			), 0.7);
		}
	}
?>